using System;
using UnityEngine;
using System.Collections;
using LogicalComponent.util;

public class Teleporter : MonoBehaviour, MoveUtil.Mover {

    public Coordinate Destination;
    public Coordinate c;

    public void DoMove(float timePassed)
    {
        if (this.Destination != null)
        {
            MoveUtil.Teleport(this.Destination, this.transform);
            this.Destination = null;
        }
    }

    public void SetDestination(Coordinate destination)
    {
        this.Destination = destination;
    }
}
